package gui.tools;

import java.util.List;

import javax.swing.ImageIcon;
import javax.swing.JComponent;

import core.DrawTool;
import core.VectorialObject;

public class ToolItem {
	
	private DrawTool tool;

	private JComponent propertiesEditor;
	
	private ImageIcon icon;
	
	private String tooltip;
	
	private String name;

	public ToolItem(DrawTool tool){
		this.setTool(tool);
	}
	
	public DrawTool getTool() {
		return tool;
	}

	public void setTool(DrawTool tool) {
		this.tool = tool;
	}

	public JComponent getPropertiesEditor() {
		return propertiesEditor;
	}

	public void setPropertiesEditor(JComponent propertiesEditor) {
		this.propertiesEditor = propertiesEditor;
	}

	public ImageIcon getIcon() {
		return icon;
	}

	public void setIcon(ImageIcon icon) {
		this.icon = icon;
	}

	public String getTooltip() {
		return tooltip;
	}

	public void setTooltip(String tooltip) {
		this.tooltip = tooltip;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public void onSelection(List<VectorialObject> l){}

}
